﻿@model Model.Database.Power
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <title>编辑用户</title>
    <link href="~/Content/Scripts/bootstrap-3.3.5-dist/css/bootstrap.min.css" rel="stylesheet" />

    <style>
        .table {
            width: 90%;
            margin: 0 auto;
            margin-top: 10px;
            margin-bottom: 10px;
            text-align: center;
        }

        .leftTd {
            width: 30%;
            font-weight: bold;
        }

        .rightTd {
            width: 70%;
        }

        pre {
            padding: 0;
            margin: 0;
            word-wrap: break-word;
            white-space: pre-wrap;
            text-align: left;
            border: 0;
        }
    </style>
    <!--引入脚本解决兼容性(hack技术，必须放入head中)-->
    <!--[if lt IE 9]>
        <script src="~/Content/Scripts/html5_css3/html5shiv.min.js"></script>
        <script src="~/Content/Scripts/html5_css3/respond.min.js"></script>
        <script src="~/Content/Scripts/PIE-2.0beta1/PIE_IE678.js"></script>
    <![endif]-->
</head>
<body>
    <table class="table table-bordered table-hover table-condensed">
        <tr>
            <td class="leftTd">权限Id</td>
            <td class="rightTd">@Model.PowerId</td>
        </tr>
        <tr>
            <td class="leftTd">菜单名称</td>
            <td class="rightTd">@Model.PowerName</td>
        </tr>
        <tr>
            <td class="leftTd">请求路径</td>
            <td class="rightTd">@Model.Url</td>
        </tr>
        <tr>
            <td class="leftTd">请求方式</td>
            <td class="rightTd">
                @{
                    if (Model.IsPost)
                    {
                        @:Post
                    }
                    else
                    {
                        @:Get
                    }
                }
            </td>
        </tr>
        <tr>
            <td class="leftTd">菜单/按钮</td>
            <td class="rightTd">
                @{
                    if (Model.IsMenu)
                    {
                        @:菜单

                    }
                    else
                    {
                        @:按钮
                    }
                }
            </td>
        </tr>
        <tr>
            <td class="leftTd">菜单图标</td>
            <td class="rightTd">@Model.MenuIcon</td>
        </tr>
        <tr>
            <td class="leftTd">Controller名称</td>
            <td class="rightTd">@Model.ControllerName</td>
        </tr>
        <tr>
            <td class="leftTd">Action名称</td>
            <td class="rightTd">@Model.ActionName</td>
        </tr>
        <tr>
            <td class="leftTd">描述</td>
            <td class="rightTd"><pre>@Model.Description</pre></td>
        </tr>
        <tr>
            <td class="leftTd">排序号</td>
            <td class="rightTd">@Model.Sort</td>
        </tr>
    </table>
</body>
</html>
